pinEdit client API

The following funtions are available:

Method

Description

editLoad(url)

Load file described with “url”

editSaveStandard(target)

Posts the HTML content asynchronously to the page defined with “target” parameter in field “html”

editPrint()

Prints the page

editGetHtml()

Reads the HTML content

editCut()

Cuts the selected html code

editCopy()

Copies the selected html code

editPaste()

Pastes the selected html code

editUndo()

Undo function

editRedo()

Redo function

editLink()

Inserts a link

editBold()

Format bold

editItalic()

Format italic

editUnderline()

Format underline

editIndent()

Indent

editOutdent()

Outdent

editJustifyLeft()

Justify left

editJustifyCenter()

Justify center

editJustifyRight()

Justify right

editJustifyFull()

Justify full

editOrderedList()

Ordered list

editUnorderedList()

Unordered list

editRemoveFormat()

Remove format

editBackColor(color)

Set backcolor

editColor(color)

Set fore color

editGetText()

Get text only

editSetText(text)

Set text

editInsertHtml(html)

Insert HTML

editGetSelectedHtml()

Get selected HTML

editAbsolute()

Set to absolute mode

editZoom(value)

Set zoom

editInsertObject(obj)

Insert an object :

‘BUTTON'
'INPUT' 

'LISTBOX'

'COMBO'

'CHECK'

'OPTION'

'AREA'

'TABLE'

'IMAGE'

setMode(mode)

Mode :

"EDIT": Standard edit mode

"HTML": HTML source mode

"PREVIEW": Preview mode

 

 

For extended mode only:

 

editOpen(mode,localPath)

Extended Mode: Opens a dialog box for selecting fiels from server. Mode should always be “1”

editSave()

Extended Mode: Saves file to server by using a dialog box